package com.example.hxds.mis.api.feign;

import com.example.hxds.common.util.R;
import com.example.hxds.mis.api.controller.form.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

@FeignClient(value = "hxds-odr")
public interface OdrServiceApi {

    @PostMapping("/order/searchDriverMonthByPositiveAndNegativeReviews")
    public R searchDriverMonthByPositiveAndNegativeReviews(@RequestBody @Valid SearchDriverMonthBusinessDataForm form);

    @PostMapping("/order/searchDriverYearBusinessMonth")
    public R searchDriverYearBusinessMonth(@RequestBody @Valid SearchDriverMonthBusinessDataForm form);

    @PostMapping("/order/searchDriverYearByMonthlyOrderSplittingPersonalIncomeTax")
    public R searchDriverYearByMonthlyOrderSplittingPersonalIncomeTax(@RequestBody @Valid SearchDriverMonthBusinessDataForm form);

    @PostMapping("/order/searchOrderByPage")
    public R searchOrderByPage(SearchOrderByPageForm form);

    //查询订单详情
    @PostMapping("/order/searchOrderContent")
    public R searchOrderContent(SearchOrderContentForm form);

    //查询订单状态
    @PostMapping("/order/searchOrderStatus")
    public R searchOrderStatus(SearchOrderStatusForm form);

    @PostMapping("/order/searchOrderStartLocationIn30Days")
    //查询30天以内订单上车点定位
    public R searchOrderStartLocationIn30Days();

    @PostMapping("/comment/searchCommentByPage")
    R searchCommentByPage(SearchCommentByPageForm form);
}